// request => axios
import request from '@/utils/request'

export function getSimpleEmployees() {
  return request({
    method: 'get',
    url: '/sys/user/simple'
  })
}
// 封装获取信息接口
export function getEmployees(params) {
  return request({
    method: 'get',
    url: '/sys/user',
    params
  })
}
// 封装删除 api
export function delEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}
// 增加员工的 api
export function addEmployee(data) {
  return request({
    method: 'post',
    url: '/sys/user',
    data
  })
}

export function importEmployees(data) {
  return request({
    method: 'post',
    url: '/sys/user/batch',
    data
  })
}
